package com.qumap.edititem;

import com.google.gwt.event.dom.client.HasChangeHandlers;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.IsWidget;
import com.qumap.item.ItemInfo;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 10.05.11
 * Time: 18:55
 * To change this template use File | Settings | File Templates.
 */
public interface IItemEditArea extends IsWidget {

	public HasClickHandlers getNewButton();
	public HasClickHandlers getSaveButton();
	public HasClickHandlers getDeleteButton();
	public HasClickHandlers getReloadButton();

	public HasClickHandlers getClearAllButton();
	public HasClickHandlers getClearTypedButton();

    public HasClickHandlers getShowUnsavedItems();

    public HasChangeHandlers getItemList();
    public boolean needReloadOnSelect();
	public void setValue(List<EditItemInfo> items);
	public ItemInfo getSelectedItem();
	public void updateItemInfo(ItemInfo active_item_info);
    public void updateItemFilter(ItemInfo active_item_info);

}
